package com.sino.config.server.bean.project;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import com.sino.config.server.bean.Entity;

/**
 * @author kerbores
 *
 */
@Table("t_profile")
@Comment("profile")
public class Profile extends Entity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Name
	@Column("p_name")
	@Comment("profile 名称")
	@NotNull(message = "profile 是必填信息")
	String name;

	@Column("p_descr")
	@Comment("profile 描述")
	@ColDefine(width = 200)
	@Size(max = 200, message = "profile描述信息不能超过200字符")
	String description;

	@Column("p_weight")
	@Comment("Profile权重")
	long weight;

	/**
	 * @return the weight
	 */
	public long getWeight() {
		return weight;
	}

	/**
	 * @param weight
	 *            the weight to set
	 */
	public void setWeight(long weight) {
		this.weight = weight;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}
